package fms.msgupcenter.protocols.downlinkfree;

/**
 * Created with IntelliJ IDEA.
 * User: adcc
 * Date: 14-6-10
 * Time: 上午10:30
 * To change this template use File | Settings | File Templates.
 */

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import java.io.Serializable;

/**
 * 下行自由文协议内容头
 */
@XmlAccessorType(XmlAccessType.FIELD)
public class DownLinkFreeHead implements Serializable{
    //region 私有变量

    @XmlAttribute(name="fi")
    private String fi;   //航班号

    @XmlAttribute(name="an")
    private String an;   //机尾号
    @XmlAttribute(name="rcvAddress")
    private String rcvaddress;
    @XmlAttribute(name="sndAddress")
    private String sndaddress;
    @XmlAttribute(name="smi")
    private String smi;
    @XmlAttribute(name="dsp")
    private String dsp;
    @XmlAttribute(name="rgs")
    private String rgs;
    @XmlAttribute(name="rgsTime")
    private String rgstime;
    @XmlAttribute(name="freeType")
    private String freetype;   // 下行自由文的类型,例如（机长请求、自由文）
    @XmlAttribute(name="freeArgument")
    private String FreeArgument;    //下行自由文参数，针对不同类型要给出的参数(例如：机长请求类型中，可能有'舱单请求'，'旅客名单请求')
    @XmlAttribute(name="appName")
    private String appname;     //上传应用类型的名称

    public DownLinkFreeHead(){
        this.an = "";
        this.fi = "";
        this.rcvaddress = "";
        this.sndaddress = "";
        this.smi = "";
        this.dsp = "";
        this.rgs = "";
        this.rgstime = "";
        this.freetype = "";
        this.FreeArgument = "";
        this.appname = "";
    }

    public DownLinkFreeHead(String an,
                            String fi,
                            String rcvaddress,
                            String sndaddress,
                            String smi,
                            String dsp,
                            String rgs,
                            String rgstime,
                            String freetype,
                            String freeArgument,
                            String appname){
        this.an = an;
        this.fi = fi;
        this.rcvaddress = rcvaddress;
        this.sndaddress = sndaddress;
        this.smi = smi;
        this.dsp = dsp;
        this.rgs = rgs;
        this.rgstime = rgstime;
        this.freetype = freetype;
        this.FreeArgument = freeArgument;
        this.appname = appname;
    }
}
